package com.android.common.adapter.holder;

import android.content.Context;
import android.view.Gravity;
import android.view.View;
import android.widget.TextView;
import com.android.common.R;
import com.android.common.base.rv.BaseRvHolder;

public class CommonTvHolder extends BaseRvHolder<String> {

    private Context mContext;

    private final TextView mTvTitle;

    public CommonTvHolder(View itemView) {
        super(itemView);
        mContext = itemView.getContext();
        mTvTitle = itemView.findViewById(R.id.tv_title);
        mTvTitle.setBackgroundResource(R.drawable.shape_blue_border_bg);
    }

    @Override
    public void bindData(String s, int position) {
        mTvTitle.setText(s);
    }
}
